package com.likai.jarscms.controller;

import javax.servlet.http.HttpServletRequest;

import com.likai.jarscms.utils.AnswerJson;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 用户认证失败Controller
 * @author likai
 * @since 2018-03-25
 */
@Controller
public class ErrorController {

	@RequestMapping(value="/urlError")
	@ResponseBody
	public ResponseEntity<AnswerJson> urlError() {
		AnswerJson json = new AnswerJson() ;
		json.setData("您所提交的访问请求中包含特殊的字符导致服务异常");
		json.setError("您所提交的访问请求中包含特殊的字符导致服务异常");
		return new ResponseEntity<AnswerJson>(json,HttpStatus.OK) ;
	}
	

}
